#include "ThreadSDL.h"
#include <assert.h>

ThreadSDL::ThreadSDL()
{

}

static int ThreadFunc(void* data)
{
	ThreadSDL* thread = reinterpret_cast<ThreadSDL*>(data);
	assert(dynamic_cast<ThreadSDL*>(thread));
	thread->Work();
	return 0;
}

void ThreadSDL::Start()
{
	m_thread = SDL_CreateThread(ThreadFunc, this);
}